QT += core gui widgets concurrent dbus

TARGET = peony-share
TEMPLATE = lib

DEFINES += PEONYSHARE_LIBRARY
DEFINES += DBUS_NAME=\\\"org.ukui.samba.share.config\\\"
DEFINES += DBUS_PATH=\\\"/org/ukui/samba/share\\\"

include(../../common.pri)

PKGCONFIG += peony
CONFIG += link_pkgconfig \
          c++11 \
	  plugin \
	  debug

SOURCES += share-page.cpp \
           share-emblem-provider.cpp \
           samba-config-thread.cpp \
           share-properties-page-plugin.cpp \
           samba-config-interface.cpp


HEADERS += share-page.h \
           share-emblem-provider.h \
           samba-config-thread.h \
           share-properties-page-plugin.h \
           samba-config-interface.h

TRANSLATIONS += translations/peony-share-extension_cs.ts \
                translations/peony-share-extension_tr.ts \
                translations/peony-share-extension_zh_CN.ts \
                translations/peony-share-extension_bo_CN.ts

RESOURCES += resources.qrc

target.path = $$[QT_INSTALL_LIBS]/peony-extensions

INSTALLS += target

DISTFILES += \
    translations/peony-share-extension_bo_CN.ts
